package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceReasonrefuseMapper;
import com.ruoyi.service.domain.ServiceReasonrefuse;
import com.ruoyi.service.service.IServiceReasonrefuseService;

/**
 * 拒单转介原因Service业务层处理
 * 
 * @author ZDL
 * @date 2024-12-26
 */
@Service
public class ServiceReasonrefuseServiceImpl implements IServiceReasonrefuseService 
{
    @Autowired
    private ServiceReasonrefuseMapper serviceReasonrefuseMapper;

    /**
     * 查询拒单转介原因
     * 
     * @param reasonrefuseId 拒单转介原因主键
     * @return 拒单转介原因
     */
    @Override
    public ServiceReasonrefuse selectServiceReasonrefuseByReasonrefuseId(Long reasonrefuseId)
    {
        return serviceReasonrefuseMapper.selectServiceReasonrefuseByReasonrefuseId(reasonrefuseId);
    }

    /**
     * 查询拒单转介原因列表
     * 
     * @param serviceReasonrefuse 拒单转介原因
     * @return 拒单转介原因
     */
    @Override
    public List<ServiceReasonrefuse> selectServiceReasonrefuseList(ServiceReasonrefuse serviceReasonrefuse)
    {
        return serviceReasonrefuseMapper.selectServiceReasonrefuseList(serviceReasonrefuse);
    }

    /**
     * 新增拒单转介原因
     * 
     * @param serviceReasonrefuse 拒单转介原因
     * @return 结果
     */
    @Override
    public int insertServiceReasonrefuse(ServiceReasonrefuse serviceReasonrefuse)
    {
        return serviceReasonrefuseMapper.insertServiceReasonrefuse(serviceReasonrefuse);
    }

    /**
     * 修改拒单转介原因
     * 
     * @param serviceReasonrefuse 拒单转介原因
     * @return 结果
     */
    @Override
    public int updateServiceReasonrefuse(ServiceReasonrefuse serviceReasonrefuse)
    {
        return serviceReasonrefuseMapper.updateServiceReasonrefuse(serviceReasonrefuse);
    }

    /**
     * 批量删除拒单转介原因
     * 
     * @param reasonrefuseIds 需要删除的拒单转介原因主键
     * @return 结果
     */
    @Override
    public int deleteServiceReasonrefuseByReasonrefuseIds(Long[] reasonrefuseIds)
    {
        return serviceReasonrefuseMapper.deleteServiceReasonrefuseByReasonrefuseIds(reasonrefuseIds);
    }

    /**
     * 删除拒单转介原因信息
     * 
     * @param reasonrefuseId 拒单转介原因主键
     * @return 结果
     */
    @Override
    public int deleteServiceReasonrefuseByReasonrefuseId(Long reasonrefuseId)
    {
        return serviceReasonrefuseMapper.deleteServiceReasonrefuseByReasonrefuseId(reasonrefuseId);
    }
}
